package com.example.javatest.TioTest;/**
 * @author wangXiao
 */

import org.tio.core.intf.Packet;

/**
 * @Description: 表述业务数据结构
 * @Author wangXiao
 * @Date 2024/3/14 
 **/
public class Mypacket extends Packet {
    /**
     * 消息头的长度
     */
    public static final int HEADER_LENGTH = 4;
    /**
     * 编码格式
     */
    public static final String CHAR_SET = "utf-8";
    /**
     * 消息体
     */
    private byte[] body;

    public byte[] getBody() {
        return body;
    }

    public void setBody(byte[] body) {
        this.body = body;
    }

}
